﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Web.Core.FileUpload
{
    /// <summary>
    /// 图像尺寸的一种实现
    /// </summary>
    public class TestFileUploadSize : IFileUploadSize
    {

        public IDictionary<UpLoadType, ImageSize> ImageSizeForType
        {
            get
            {
                return new Dictionary<UpLoadType, ImageSize>
                {
                  {UpLoadType.UserAvatar,new ImageSize(100,100)},
                  {UpLoadType.ProductImage,new ImageSize(400,400)},
                };
            }
        }
    }
}
